
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form">
            <div class="layui-input-inline">
                <button class="layui-btn layui-btn-danger delete-all"
                        data-table-id="error-table" data-del-url="/admin/log/del_syserr.htm">
                    <i class="layui-icon-delete layui-btn-icon layui-icon"></i>删除全部</button>
            </div>
            <div class="layui-input-inline">
                <button class="layui-btn common-reload">
                    <i class="layui-icon-refresh-3 layui-btn-icon layui-icon"></i>重新加载</button>
            </div>
            <div class="layui-input-inline" >
                <button class="layui-btn layui-btn-primary" id="clear_error_log">
                    <i class="layui-icon-refresh-3 layui-btn-icon  layui-icon"></i>清空未读</button>
            </div>
        <table id="error-table" class="layui-table" lay-filter="error-table"></table>
    </div>
</div>
<script>
        tb = table.render({
            elem: '#error-table',
            url: '/admin/admin/syserr.htm',
            cols: [[
                {type: "checkbox", width: 50, fixed: "left"},
                {field: 'id', width: 80, title: 'ID', sort: true},
                {field: 'create_time', title: '时间',width:180,templet:function(d){
                        return util.timeAgo( d.create_time * 1000 )
                    }},
                {field: 'msg', title: '内容',minWidth:600},
             
            ]]
    });
    </script>
